/**

 */
package com.adkfp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.adkfp.bean.ADKDoorBean;
import com.adkfp.dao.ADKDoorDaoMapper;
import com.adkfp.service.IADKDoorService;

/**
 * class name:SelectclassAction <BR>
 * class description: please write your description <BR>
 * Remark: <BR>
 * @version 1.00 2019年1月22日
 * @author ADK)zhoulin
 */
@Service("aDKDoorService")
public class ADKDoorServiceImpl implements IADKDoorService{
	@Resource
	private ADKDoorDaoMapper aDKDoorMapper;
	
	/**
	 * @Override
	 * Method name: insert <BR>
	 * Description: 插入一条记录 <BR>
	 * Remark: <BR>
	 * @param bean  <BR>
	*/
	@Override
	@Transactional
	public void insert(ADKDoorBean bean) {
		aDKDoorMapper.insert(bean);
	}

	/**
	 * @Override
	 * Method name: delete <BR>
	 * Description: 删除一条记录 <BR>
	 * Remark: <BR>
	 * @param id  <BR>
	*/
	@Override
	@Transactional
	public void delete(Integer id) {
		aDKDoorMapper.delete(id);		
	}

	/**
	 * @Override
	 * Method name: update <BR>
	 * Description: 更新一条记录 <BR>
	 * Remark: <BR>
	 * @param bean  <BR>
	*/
	@Override
	@Transactional
	public void update(ADKDoorBean bean) {
		aDKDoorMapper.update(bean);		
	}

	/**
	 * @Override
	 * Method name: findById <BR>
	 * Description: 根据id获取一条记录 <BR>
	 * Remark: <BR>
	 * @param id
	 * @return  <BR>
	*/
	@Override
	public ADKDoorBean findById(Integer id) {
		return aDKDoorMapper.findById(id);
	}

	/**
	 * @Override
	 * Method name: findByCondition <BR>
	 * Description: 根据bean里面的条件(判空)查询所有记录 <BR>
	 * Remark: <BR>
	 * @param bean
	 * @return  <BR>
	*/
	@Override
	@Transactional
	public List<ADKDoorBean> findByCondition(ADKDoorBean bean) {
		return aDKDoorMapper.findByCondition(bean);
	}

	/**
	 * @Override
	 * Method name: findByConditionCount <BR>
	 * Description: 根据bean里面的条件(判空)查询所有记录条数 <BR>
	 * Remark: <BR>
	 * @param bean
	 * @return  <BR>
	*/
	@Override
	@Transactional
	public long findByConditionCount(ADKDoorBean bean) {
		return aDKDoorMapper.findByConditionCount(bean);
	}

}
